/* Admin-specific styles */

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

nav li {
    margin-right: 10px;
}

nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

nav a.active {
    background-color: #007bff;
    color: white;
    border-radius: 4px 4px 0 0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));*/
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
}

.activity-log {
    max-height: 300px;
    overflow-y: auto;
}

.activity-log ul {
    list-style: none;
    padding: 0;
}

.activity-log li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.timestamp {
    color: #666;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Tables */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.date-filter, .status-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

/* Buttons */
.primary-btn, .secondary-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.primary-btn {
    background-color: #007bff;
    color: white;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
}

.btn-edit, .btn-delete, .btn-approve, .btn-reject {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-edit {
    background-color: #ffc107;
    color: #212529;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-approve {
    background-color: #28a745;
    color: white;
}

.btn-reject {
    background-color: #dc3545;
    color: white;
}

/* Form Controls */
input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Policies Container */
.policies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.policy-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

.policy-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.policy-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.policy-content {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.policy-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 60%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

/* Admin-specific styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 人脸注册状态样式 */
.status-registered {
    color: #4CAF50;
    font-weight: bold;
    padding: 3px 8px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.status-not-registered {
    color: #f44336;
    font-weight: bold;
    padding: 3px 8px;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* 表单提示信息 */
.form-hint {
    color: #666;
    font-size: 0.85em;
    margin-top: 4px;
    display: block;
} 